#pragma once
#include <QtCore/QObject>
#include "Serializable.h"

class WeaponProficiencyModel :
	public Serializable
{
	Q_OBJECT
	Q_PROPERTY(QString Name READ Name WRITE setName)
	Q_PROPERTY(QString S READ S WRITE setS)
	Q_PROPERTY(QString P READ P WRITE setP)
	Q_PROPERTY(QString THR READ THR WRITE setTHR)
	Q_PROPERTY(QString Range READ Range WRITE setRange)


#pragma region Constructor

public:
	WeaponProficiencyModel(void);
	~WeaponProficiencyModel(void);

#pragma endregion

#pragma region Properties and Fields

	Q_PROP_DECL(QString, Name)
	Q_PROP_DECL(QString, S)
	Q_PROP_DECL(QString, P)
	Q_PROP_DECL(QString, THR)
	Q_PROP_DECL(QString, Range)

#pragma endregion


#pragma region Public Methods

public:
	bool Serialize(QDomDocument * doc, QDomElement * tag);
	bool Deserialize(QDomDocument * doc, QDomElement * tag);

#pragma endregion

};

